<?php 
global $_W,$_GPC;
include MODULE_ROOT.'/inc/mobile/__init.php';
$title = "资料完善";
$act = trim($_GPC['act']);

if($act == 'post'){
	$data = array();
	$data['realname'] = trim($_GPC['realname']);
	$data['mobile'] = trim($_GPC['mobile']);
	
	pdo_update('imeepos_runner3_member',$data,array('openid'=>$_W['openid'],'uniacid'=>$_W['uniacid']));
	$return = array();
	$return['result'] = 0;
	die(json_encode($return));
}

$_pjax = trim($_GPC['_pjax']);

$template_content = $template.'/home/edit';

if($_W['isajax']){
	include $this->template($template_content,TEMPLATE_FETCH);
}else{
	include $this->template($template.'/index');
}